/**
 * Created by IntelliJ IDEA.
 * User: Tomek
 * Date: 20.06.12
 * Time: 22:49
 * To change this template use File | Settings | File Templates.
 */
package AS3 {
import mx.utils.NameUtil;

public class CalculationResult {

    private var _general:Number;
    private var _deforestation:Number;
    private var _electricity:Number;
    private var _consumption:Number;
    private var _airTransport:Number;
    private var _publicTransport:Number;
    private var _carProduction:Number;
    private var _fuelBurnings:Number;
    private var _airConditioning:Number;
    private var _hotWater:Number;
    private var _heating:Number;
    private var _constructionMaintenance:Number;
    private var _food:Number;

    private var _personalConsumptionEnergy:EnergyConsumption = new EnergyConsumption();
    private var _airTransportEnergy:EnergyConsumption = new EnergyConsumption();
    private var _publicTransportEnergy:EnergyConsumption = new EnergyConsumption();
    private var _carProductionEnergy:EnergyConsumption = new EnergyConsumption();
    private var _fuelBurningsEnergy:EnergyConsumption = new EnergyConsumption();
    private var _airConditioningEnergy:EnergyConsumption = new EnergyConsumption();
    private var _hotWaterEnergy:EnergyConsumption = new EnergyConsumption();
    private var _heatingEnergy:EnergyConsumption = new EnergyConsumption();
    private var _constructionMaintenanceEnergy:EnergyConsumption = new EnergyConsumption();
    private var _foodEnergy:EnergyConsumption = new EnergyConsumption();
    private var _directElectricity:EnergyConsumption = new EnergyConsumption();
    private var _generalEnergy:EnergyConsumption = new EnergyConsumption();

    private var _electricityEnergy:Number = new Number(0);   //GJ
    private var _coalEnergy:Number = new Number(0) ;          //GJ
    private var _gasEnergy:Number = new Number(0);           //GJ
    private var _oilEnergy:Number = new Number(0);           //GJ
    private var _biomassEnergy:Number = new Number(0);       //GJ



    public function CalculationResult() {
    }


    public function get generalEnergy():EnergyConsumption {
        return _generalEnergy;
    }

    public function set generalEnergy(value:EnergyConsumption):void {
        _generalEnergy = value;
    }

    public function get directElectricity():EnergyConsumption {
        return _directElectricity;
    }

    public function set directElectricity(value:EnergyConsumption):void {
        _directElectricity = value;
    }

    public function get personalConsumptionEnergy():EnergyConsumption {
        return _personalConsumptionEnergy;
    }

    public function set personalConsumptionEnergy(value:EnergyConsumption):void {
        _personalConsumptionEnergy = value;
    }

    public function get airTransportEnergy():EnergyConsumption {
        return _airTransportEnergy;
    }

    public function set airTransportEnergy(value:EnergyConsumption):void {
        _airTransportEnergy = value;
    }

    public function get publicTransportEnergy():EnergyConsumption {
        return _publicTransportEnergy;
    }

    public function set publicTransportEnergy(value:EnergyConsumption):void {
        _publicTransportEnergy = value;
    }

    public function get carProductionEnergy():EnergyConsumption {
        return _carProductionEnergy;
    }

    public function set carProductionEnergy(value:EnergyConsumption):void {
        _carProductionEnergy = value;
    }

    public function get fuelBurningsEnergy():EnergyConsumption {
        return _fuelBurningsEnergy;
    }

    public function set fuelBurningsEnergy(value:EnergyConsumption):void {
        _fuelBurningsEnergy = value;
    }

    public function get airConditioningEnergy():EnergyConsumption {
        return _airConditioningEnergy;
    }

    public function set airConditioningEnergy(value:EnergyConsumption):void {
        _airConditioningEnergy = value;
    }

    public function get hotWaterEnergy():EnergyConsumption {
        return _hotWaterEnergy;
    }

    public function set hotWaterEnergy(value:EnergyConsumption):void {
        _hotWaterEnergy = value;
    }

    public function get heatingEnergy():EnergyConsumption {
        return _heatingEnergy;
    }

    public function set heatingEnergy(value:EnergyConsumption):void {
        _heatingEnergy = value;
    }

    public function get constructionMaintenanceEnergy():EnergyConsumption {
        return _constructionMaintenanceEnergy;
    }

    public function set constructionMaintenanceEnergy(value:EnergyConsumption):void {
        _constructionMaintenanceEnergy = value;
    }

    public function get foodEnergy():EnergyConsumption {
        return _foodEnergy;
    }

    public function set foodEnergy(value:EnergyConsumption):void {
        _foodEnergy = value;
    }

    public function toString():String {
       var result:String = "" + "gen[ " +_general + "] _def[" + _deforestation + "] elec[" + _electricity + "] cons[" + _consumption;
       result = result + "] airTr[ " + _airTransport + "] pbTr[" + _publicTransport + "] carPr[" + _carProduction;
       result = result + "] fuelBr[" + _fuelBurnings + "] ac[" + _airConditioning + "]_hotW[" + _hotWater + "] heat[" + _heating + "_constr[" + _constructionMaintenance;
       result = result + "] food[ " + _food + "]";


       return result;
    }

    public function get electricityEnergy():Number {
        return _electricityEnergy;
    }

    public function set electricityEnergy(value:Number):void {
        _electricityEnergy = value;
    }

    public function get coalEnergy():Number {
        return _coalEnergy;
    }

    public function set coalEnergy(value:Number):void {
        _coalEnergy = value;
    }

    public function get gasEnergy():Number {
        return _gasEnergy;
    }

    public function set gasEnergy(value:Number):void {
        _gasEnergy = value;
    }

    public function get oilEnergy():Number {
        return _oilEnergy;
    }

    public function set oilEnergy(value:Number):void {
        _oilEnergy = value;
    }

    public function get biomassEnergy():Number {
        return _biomassEnergy;
    }

    public function set biomassEnergy(value:Number):void {
        _biomassEnergy = value;
    }

    public function get food():Number {
        return _food;
    }

    public function set food(value:Number):void {
        _food = value;
    }

    public function get general():Number {
        return _general;
    }

    public function set general(value:Number):void {
        _general = value;
    }

    public function get deforestation():Number {
        return _deforestation;
    }

    public function set deforestation(value:Number):void {
        _deforestation = value;
    }

    public function get electricity():Number {
        return _electricity;
    }

    public function set electricity(value:Number):void {
        _electricity = value;
    }

    public function get consumption():Number {
        return _consumption;
    }

    public function set consumption(value:Number):void {
        _consumption = value;
    }

    public function get airTransport():Number {
        return _airTransport;
    }

    public function set airTransport(value:Number):void {
        _airTransport = value;
    }

    public function get publicTransport():Number {
        return _publicTransport;
    }

    public function set publicTransport(value:Number):void {
        _publicTransport = value;
    }

    public function get carProduction():Number {
        return _carProduction;
    }

    public function set carProduction(value:Number):void {
        _carProduction = value;
    }

    public function get fuelBurnings():Number {
        return _fuelBurnings;
    }

    public function set fuelBurnings(value:Number):void {
        _fuelBurnings = value;
    }

    public function get airConditioning():Number {
        return _airConditioning;
    }

    public function set airConditioning(value:Number):void {
        _airConditioning = value;
    }

    public function get hotWater():Number {
        return _hotWater;
    }

    public function set hotWater(value:Number):void {
        _hotWater = value;
    }

    public function get heating():Number {
        return _heating;
    }

    public function set heating(value:Number):void {
        _heating = value;
    }

    public function get constructionMaintenance():Number {
        return _constructionMaintenance;
    }

    public function set constructionMaintenance(value:Number):void {
        _constructionMaintenance = value;
    }
}
}
